package net.bungaeting.client.android.activity;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ListActivity extends Activity{
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.list);
        
        String [] str={"천안", "서울", "대전", "부산", "청주", "인천", "광주", "원주"}; 
        ArrayList<String> bungaeList = new ArrayList<String>();
        for(int i=0; i<str.length; i++)
        bungaeList.add(str[i]);
       
        ArrayAdapter<String> Adapter = 
        	new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1 ,bungaeList);

        ListView list = (ListView)findViewById(R.id.bungae_view);
        list.setAdapter(Adapter);
        
	}
}
